<!DOCTYPE html>
<html>
<body>
<!--CONTENT SECTION START-->

<div id="main-wrapper-sec">

<section>

	<!--INNER MAIN TITLE SECTION START-->

    <h2 class="inner-main-title pr-title">Forget Password</h2>
    
    <!--INNER MAIN TITLE SECTION END-->
    
    <!--CONTENT MAIN SECTION START-->
    
  <div class="content-main-sec">
  
  <!--INNER CONTENT LEFT SECTION START--> 
	
  <article class="inner-content-left-sec">
  <!--<h1 class="inner-cont-title">Recharge Online</h1>-->
  
  <aside class="inner-cont-sub-left-sec" style="border-right:none;">
  
  <div class="online-recharge-sec">
  
  <h2 class="or-pp-sec"><span class="fleft">Forget Password Here</span></h2>
  
  <ul class="login-form-sec">
  <form id="formid" method="post" onsubmit="return forgetPassword()">
	  <span id="errorfname" style="color:red;margin:0px 0px 0px 350px;" ></span>
	  <span id="errorf1" style="color:red;margin:0px 0px 0px 0px;" ></span>
	  <li>
	  <label>Enter Mobile no :</label> <span>&nbsp;&nbsp;</span> 
	  <span style="float:left;width:100px;"><?php include('cflag.phtml');?></span>
	  <input style="margin:0px 0px 0px 12px;" name="num" id="num" type="text">
	  </li>
	  <!--<li><label>&nbsp;</label> <span>&nbsp;&nbsp;</span> 
	  <div class="radio-but"><input name="radio" type="radio" value=""> Email</div>
	  <div class="radio-but"><input name="radio" type="radio" value=""> SMS  (Select the options to send your password)</div>
	  </li>-->
	  <input type="hidden" id="tag" name="tag">
	  <li>
	  <input type="submit" value="submit">
	  </li>
	</form>
  </ul><br/><br/>
  <?php if(isset($output)){ if($output=='success'){ ?><span style="color:green;margin:0px 0px 0px 234px;">*Password sent to your Email</span><? }else{ ?><span style="color:red;margin:0px 0px 0px 234px;">*Please enter valid Mobile number</span><?php } }?>
  </div>
  
  </aside>
  </article>
  
  <!--INNER CONTENT LEFT SECTION END-->
  
  <!--INNER CONTENT RIGHT SECTION START-->
  
  <article class="inner-content-right-sec">
  
  </article>
  
  <!--INNER CONTENT RIGHT SECTION END-->

  </div>
  
  <!--CONTENT MAIN SECTION END-->
  
  <div class="clear"></div>
  
  <!--CLIENTS AREA SECTION START-->
  
  <aside class="content-main-sec ot-lg-sec"> <img src="<?php echo $this->basePath(); ?>/images/truste.jpg" alt=""> <img src="<?php echo $this->basePath(); ?>/images/secured.jpg" alt=""> <img src="<?php echo $this->basePath(); ?>/images/mcafeev.jpg" alt="">
    <h3 class="otg-title">Trusted. Safe. Reliable.</h3>
  </aside>
  
  <!--CLIENTS AREA SECTION END-->
  
  <div class="clear"></div>
</section>

</div>

<!--CONTENT SECTION END--> 

<!--FOOTER SECTION START-->

</body>
</html>
<script>
function forgetPassword(){
	var t=$('#img').text();
	$('#tag').val(t);
	var num=$("#num").val();
	var numbers = /^[0-9]+$/;
	flag=true;
	if(num==''){
		$('#errorfname').html('Required');
		flag=false;
	}
	if(!num.match(numbers) && num!=''){
		$('#errorfname').html('Numbers Only');
		flag=false;
	}
	if(flag==false){
		return false;
	}else{
		
		window.location='<?php echo $this->basePath(); ?>'+'/users/forget-password';
	}
}
</script>